]> dgit.raspbian.org Git - gnome-shell.git/commit
notificationDaemon: Stop auto-dismissing on focus changes
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 12 Jun 2022 16:27:34 +0000 (18:27 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 14 Jul 2022 11:39:55 +0000 (11:39 +0000)
commit12a203a1db59dfc7a51a482e5bb2619aa0915db2
tree3a817671f67c47a93acf791425b2c85bc28d4ff1
parent9d47062c3282b0f103d25a5d3412f28d7766c252
notificationDaemon: Stop auto-dismissing on focus changes

This behavior dates back all the way to the original gnome-shell
release, and it did make sense at the time:

 - we were first to make notifications persistent instead of
   closing them after a timeout; apps were therefore used to
   treat notifications as fire-and-forget instead of closing
   them when no longer relevant

 - neither web notifications not portals did exist yet, so the
   D-Bus API was only used directly, instead of as a backend
   for other APIs; as a result, focusing the app was more likely
   than not to put the source of the event that the user was
   notified about into view

Nowadays both persistent notifications and web notifications
are wide-spread, so the original reasons no longer apply.

This change helps web notifications in particular, as it reduces
the differences between XDG and portal-based implementations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2332>
js/ui/notificationDaemon.js